.. _CVoice Class: ========================== CVoice Class ========================== .. toctree:: :maxdepth: 1 * :ref:`Overview` * :ref:`Quick Reference` * :ref:`Constructors` * :ref:`Methods` ---- .. _CVoice_Overview: Overview --------------- .. note:: The **CVoice** class handles The structure used for this class is :ref:`CVoice` ---- .. _CVoice_QuickRef: Quick Reference --------------- +-----------------------------------------------------------------------------+ | **Quick Ref** | +-----------------------------------------------------------------------------+ | void **CVoice\:\:CVoice**\() | +-----------------------------------------------------------------------------+ | virtual void **CVoice\:\:~CVoice**\() | +-----------------------------------------------------------------------------+ | int **CVoice\:\:GetChannel**\() | +-----------------------------------------------------------------------------+ | int **CVoice\:\:GetLooping**\() | +-----------------------------------------------------------------------------+ | int **CVoice\:\:GetPriority**\() | +-----------------------------------------------------------------------------+ | :ref:`CSound`\* **CVoice\:\:GetSound**\() | +-----------------------------------------------------------------------------+ | int **CVoice\:\:IsSoundPlaying**\(unsigned char bInSoundUpdate) | +-----------------------------------------------------------------------------+ | int **CVoice\:\:ResetVolume**\() | +-----------------------------------------------------------------------------+ | void **CVoice\:\:SetBuffer**\(unsigned int buffer) | +-----------------------------------------------------------------------------+ | void **CVoice\:\:SetDuckedOthers**\(bool b) | +-----------------------------------------------------------------------------+ | void **CVoice\:\:SetSound**\(:ref:`CSound`\* pSound) | +-----------------------------------------------------------------------------+ | int **CVoice\:\:Stop**\() | +-----------------------------------------------------------------------------+ ---- .. _CVoice_Constructors: Constructors --------------- +-------------------------------------------+------------------------------------------------------+ | **Name** | **Description** | +-------------------------------------------+------------------------------------------------------+ | :ref:`CVoice\:\:CVoice` | Constructs a ``CVoice`` object | +-------------------------------------------+------------------------------------------------------+ | :ref:`CVoice\:\:CVoice` | Destroys a ``CVoice`` object | +-------------------------------------------+------------------------------------------------------+ .. _CVoiceCVoice: CVoice\:\:CVoice ^^^^^^^^^^^^^^^^^^^^^^^^^ Constructs a ``CVoice`` object :: void CVoice::CVoice(); **Remarks** Constructs a ``CVoice`` object ---- .. _CVoice~CVoice: CVoice\:\:~CVoice ^^^^^^^^^^^^^^^^^^^^^^^^^ Destroys the ``CVoice`` object :: virtual void CVoice::~CVoice(); **Remarks** Destroys the ``CVoice`` object ---- .. _CVoice_Methods: Methods --------------- +---------------------------------------------------------+-----------------------------------------------------------------------------------------+ | **Name** | **Description** | +---------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVoice\:\:GetChannel` | | +---------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVoice\:\:GetLooping` | | +---------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVoice\:\:GetPriority` | | +---------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVoice\:\:GetSound` | | +---------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVoice\:\:IsSoundPlaying` | | +---------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVoice\:\:ResetVolume` | | +---------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVoice\:\:SetBuffer` | | +---------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVoice\:\:SetDuckedOthers` | | +---------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVoice\:\:SetSound` | | +---------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVoice\:\:Stop` | | +---------------------------------------------------------+-----------------------------------------------------------------------------------------+ ---- .. _CVoiceGetChannel: CVoice\:\:GetChannel ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: int CVoice::GetChannel(); **Return Value** Returns ``int`` **Remarks** ---- .. _CVoiceGetLooping: CVoice\:\:GetLooping ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: int CVoice::GetLooping(); **Return Value** Returns ``int`` **Remarks** ---- .. _CVoiceGetPriority: CVoice\:\:GetPriority ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: int CVoice::GetPriority(); **Return Value** Returns ``int`` **Remarks** ---- .. _CVoiceGetSound: CVoice\:\:GetSound ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: CSound* CVoice::GetSound(); **Return Value** Returns :ref:`CSound`\* **Remarks** ---- .. _CVoiceIsSoundPlaying: CVoice\:\:IsSoundPlaying ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: int CVoice::IsSoundPlaying(unsigned char bInSoundUpdate); **Parameters** * ``unsigned char`` *bInSoundUpdate* - **Return Value** Returns ``int`` **Remarks** ---- .. _CVoiceResetVolume: CVoice\:\:ResetVolume ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: int CVoice::ResetVolume(); **Return Value** Returns ``int`` **Remarks** ---- .. _CVoiceSetBuffer: CVoice\:\:SetBuffer ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: void CVoice::SetBuffer(unsigned int buffer); **Parameters** * ``unsigned int`` *buffer* - **Remarks** ---- .. _CVoiceSetDuckedOthers: CVoice\:\:SetDuckedOthers ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: void CVoice::SetDuckedOthers(bool b); **Parameters** * ``bool`` *b* - **Remarks** ---- .. _CVoiceSetSound: CVoice\:\:SetSound ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: void CVoice::SetSound(CSound* pSound); **Parameters** * :ref:`CSound`\* *pSound* - **Remarks** ---- .. _CVoiceStop: CVoice\:\:Stop ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: int CVoice::Stop(); **Return Value** Returns ``int`` **Remarks**